Skip to content

fix: replace custom HTML escape table with stdlib html.escape()#57

Closed
Deepak8858 wants to merge 1 commit into
OWASP:mainfrom
Deepak8858:fix/issue-48-html-escape
Closed

fix: replace custom HTML escape table with stdlib html.escape()#57
Deepak8858 wants to merge 1 commit into
OWASP:mainfrom
Deepak8858:fix/issue-48-html-escape

Conversation

@Deepak8858
Copy link
Copy Markdown

Description

Replaces custom _escape_html() implementation with Python standard library html.escape(text, quote=True) in both docker_scanner.py and report_generator.py. This provides more robust and maintained escaping for HTML reports.

Changes

  • Replaced manual dictionary-based escaping with html.escape.
  • Simplified _escape_html method in both files.
  • Added import html to both files.

Fixes #48

@advaitpatel
Copy link
Copy Markdown
Collaborator

this PR is outdated. closing it now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[SECURITY] Replace custom HTML escape table with stdlib html.escape() in report generation

2 participants